﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PlutoStudio.Net.Processors.Attributes
{
    [AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
    public sealed class MessageCodeAttribute : Attribute
    {
        // See the attribute guidelines at 
        //  http://go.microsoft.com/fwlink/?LinkId=85236
        readonly byte code;

        // This is a positional argument
        public MessageCodeAttribute(byte code)
        {
            this.code = code;

        }

        public byte Code
        {
            get { return code; }
        }

        // This is a named argument
        public string Descript { get; set; }
    }
}
